package com.dongqi.business.controller;

import com.dongqi.business.service.KtrService;
import com.dongqi.config.RestResult;
import com.dongqi.dto.KettleKtrDTO;
import com.dongqi.entity.KettleKtr;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/kettle")
public class KettleController {
    @Autowired
    private KtrService ktrService;

    @GetMapping("/queryKtrList")
    public RestResult queryKtrList() {
        List<KettleKtrDTO> list = ktrService.queryKtrList();
        return RestResult.success(list);
    }
}
